<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title></title>
    </h:head>
   <f:view>
    <h:form id="UserForm" prependId="false" >
         <p:panel header =" Phần Chính "  >
                   <h:panelGrid  columns="2" cellpadding="2"> 
                                    
                                           <h:outputLabel value=" Ngày Tao :  " />  
                                           <p:calendar value="#{truocthi.ngaytao}" pattern="dd/MM/yyyy" /> 
                                           <h:outputLabel  value=" Môn Học :  " />  
                                                 <h:selectOneMenu id = "listMonHoc" value ="#{truocthi.maMH}" >  
                                                      <f:selectItems value = "#{truocthi.getAllMonHoc()}"/>
                                                 </h:selectOneMenu>
                                              <h:outputLabel  value=" Level :  " />  
                                                 <h:selectOneMenu  value ="#{truocthi.maLevel}" >  
                                                      <f:selectItems value = "#{truocthi.getAllLevel()}"/>
                                                 </h:selectOneMenu>
                                                <h:outputLabel  value=" So Cau Hoi:  " />  
                                                 <h:selectOneMenu  value ="#{truocthi.ncauhoi}" >
                                                      <f:selectItems value = "#{truocthi.socauhoi}"/>    
                                                 </h:selectOneMenu>
                                   
                                 </h:panelGrid> 
              </p:panel>
              
                               <h:commandButton value=" Go " action="#{truocthi.actionGo()}"   >  
                               </h:commandButton>
                               
                           
     </h:form>
  </f:view>
</html>

